<!DOCTYPE html>
<html>
<head>
    <#include "../common.ftl">
</head>
<body class="childrenBody">
<form class="layui-form" style="width:80%;">
    <input id="saleListId" name="saleListId" value="${saleListId!}" type="hidden" />
    <input id="payType" name="payType" value="${payType!}" type="hidden" />
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">销售单号</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input saleNumber"
                   name="saleNumber" id="saleNumber" readonly="readonly" value="${saleNumber!}">
        </div>
    </div>
    <br/>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">未付金额</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input amountNotPaid"
                   name="amountNotPaid" id="amountNotPaid" readonly="readonly" value="${amountNotPaid!}">
        </div>
    </div>
    <br/>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">支付日期</label>
        <div class="layui-input-block">
            <input type="text" name="payDate" id="payDate" lay-verify="payDate"
                   placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">支付金额</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input amountPaid"
                   name="amountPaid" id="amountPaid" placeholder="请输入">
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <div class="layui-input-inline">
            <button type="button" class="layui-btn layui-btn-danger" id="checkAmountDiscounts"  lay-event="checkAmountDiscounts">
                <i class="layui-icon">&#xe608;</i>
                优惠金额
            </button>
        </div>
        <div class="layui-input-inline">
            <input type="text" id="amountDiscounts" name="amountDiscounts"
                   class="layui-input searchVal" readonly="readonly" value="${(amountDiscounts)!0}" />
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">备注</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input remarks"
                   name="remarks" id="remarks" value="${(saleListPayment.remarks)!}" placeholder="备注">
        </div>
    </div>
    <br/>
    <div class="layui-form-item layui-row layui-col-xs12">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-lg" lay-submit=""
                    lay-filter="addOrUpdateSaleListPayment">确认
            </button>
            <a class="layui-btn layui-btn-lg layui-btn-normal"  id="closeDlg" href="javascript:void(0)">取消</a>
        </div>
    </div>
</form>
<script type="text/javascript" src="${ctx.contextPath}/lib/decimal-v10.4.3/decimal.js"></script>
<script type="text/javascript" src="${ctx.contextPath}/js/saleListPayment/add.js"></script>
</body>
</html>
